<?php 
session_start();
include('../../../cfg/cfg.inc.php');
include('../../../include/functions.inc.php');

$id = getParam("estud");
$_SESSION['stud'] = $id;
$sql = "select * from cllg_student_assign where FK_STUDENT = '$id'";
$recordset = $db->query($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Solvencias</title>
        <script type="text/javascript" src="../../../js/prototype.js"></script>
        <script type="text/javascript">
            function carr(){
            var a=new Ajax.Updater('NvoMov','cursos.php',{parameters:Form.serialize("form1"), method:'get'});
            }
            function report12(fe){
                    var p="fe="+fe;
                    var a=new Ajax.Request('observacion.php',{parameters:p, method:'get'});
                    var URL = "solvencia.php?observ="+$F("observacion");
                    day = new Date();
                    id = day.getTime();
                    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1000,height=700,left = 682.5,top = 412.5');");
            }
        </script>
        <link href="../../../bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
        <link href="../../../css/ContentStyle.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" name="form1" method="post" action="">
            <table width="80%" style="margin-left: 10%" border="0" cellspacing="0" class="">
                <tr>
                  <th colspan="2"><legend>Seleccione carrera</legend></th>
                </tr>
                <tr>
                    <td colspan="2">
                        <label>
                            <select name="Cli1" id="Cli1">
                            <?php while ($rowRecordset= mysql_fetch_assoc($recordset)){ 
                                    $carr = $rowRecordset['FK_CAREER'];
                                    $Querry_recordSet44 = "select * from cllg_career where ID = '$carr'";
                                    $recordset44 = $db->query($Querry_recordSet44);
                                    $rowRecordset44=mysql_fetch_assoc($recordset44);
                            ?>
                                <option value="<?php echo $rowRecordset['ID'] ?>"><?php echo $rowRecordset44['NAME']?></option>
                            <?php }?>
                            </select>
                            &nbsp;
                            <input name="beliminar" type="button" class="btn btn-info" onclick="javascript:carr()" value="Procesar.."/>
                            </label>
                    </td>
                </tr>
                <tr>
                    <td width="10%" valign="top">Obsevaciones:</td>
                    <td width="90%"><textarea name="observacion" cols="20" rows="5" wrap="physical" id="observacion"></textarea></td>
                </tr>
                <tr>
                    <td colspan="2" id="NvoMov">&nbsp;</td>
                </tr>
            </table>
        </form>
    </body>
</html>
